package com.google.code.mochaccino.framework.crypto.pgp.types;

/*
 * Copyright 2012 Claude Houle claude.houle@gmail.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import org.bouncycastle.bcpg.PublicKeyAlgorithmTags;

/** Public Key */
public enum PgpPublicKey {

	DSA( PublicKeyAlgorithmTags.DSA, "DSA" ),
	ELGAMAL_ENCRYPT( PublicKeyAlgorithmTags.ELGAMAL_ENCRYPT, "ELGAMAL" ),
	ELGAMAL_GENERAL( PublicKeyAlgorithmTags.ELGAMAL_GENERAL, "ELGAMAL" ),
	RSA_ENCRYPT( PublicKeyAlgorithmTags.RSA_ENCRYPT, "RSA" ),
	RSA_GENERAL( PublicKeyAlgorithmTags.RSA_GENERAL, "RSA" ),
	RSA_SIGN( PublicKeyAlgorithmTags.RSA_SIGN, "RSA" );

	/** The Algorithm */
	private int algorithm;

	/** The Name of the Algorithm */
	private String algorithmName;

	/** Constructor */
	private PgpPublicKey( int algo, String algoName ) {
		this.algorithm = algo;
		this.algorithmName = algoName;
	}

	/** Return the Algo */
	public int getAlgo() {
		return algorithm;
	}

	/** Return the Algo Name */
	public String getAlgoName() {
		return algorithmName;
	}

}